<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
		<!-- Meta -->
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<!-- End of Meta -->
		
		<!-- Page title -->
		<title>用户登录</title>
		<!-- End of Page title -->
		
		<!-- Libraries -->
		<link type="text/css" href="../css/login.css" rel="stylesheet" />	
		<link type="text/css" href="../css/smoothness/jquery-ui-1.7.2.custom.html" rel="stylesheet" />	
		
		<script type="text/javascript" src="../js/jquery-1.4.4.min.js"></script>
		<script type="text/javascript" src="../js/easyTooltip.js"></script>
		<script type="text/javascript" src="../js/jquery-ui-1.7.2.custom.min.js"></script>
		<!-- End of Libraries -->	
	</head>
	<body>
	<div id="container">
		<div class="logo">
			<a href="#"><img src="../assets/logo.png" alt="" /></a>
		</div>
		<div id="box">
			<form action="/login/login" method="POST">
			<p class="main">
				<label>用户名: </label>
				<input id="username" name="username"  /> 
				<label>密码: </label>
				<input id="password" type="password" name="password" >	
			</p>
			<p class="space">
				<span><input id="remeber" type="checkbox" value="false"/>记住用户名</span>
				<input type="submit" value="Login" class="login" />
			</p>
			</form>
		</div>
	</div>

	</body>
	<script type="text/javascript">
		var user=$("#username");
		var pwd=$("#password");
		var rem=$("#remeber");
		$(function(){
			var info="${loginInfo}";
			if(rem.attr("value")==false){
				user.attr("value","");
			}
			pwd.attr("value","");
			if(info!=""){
				alert(info);
			}
		});
	</script>
	
</html>